package date;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateTest {
	public static void main(String[] args) {
		
		Date date = new Date();
		System.out.println(date);
		
		String s = "yyyy-MM-dd HH:mm:ss";
		SimpleDateFormat sdf = new SimpleDateFormat(s);
		String s1 = sdf.format(date);
		System.out.println(s1);
		
		
		
	}

}
